package com.jiawa.wiki.service;

import com.jiawa.wiki.mapper.EbookSnapshotCust;
import com.jiawa.wiki.resp.StatisticResp;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Li Cheng
 * @Date 2021/5/26 10:50
 * @Version 1.0
 */
@Service
public class EbookSnapshotService {

    @Resource
    private EbookSnapshotCust ebookSnapshotCust;

    public void genSnapshot(){
        ebookSnapshotCust.genSnapshot();
    }

    public List<StatisticResp> getStatistic(){
        return ebookSnapshotCust.getStatistic();
    }
    public List<StatisticResp> get30Statistic(){
        return ebookSnapshotCust.get30Statistic();
    }



}
